package com.yunche.yunchebusiness.mvp.model

import com.yunche.yunchebusiness.base.BaseResponse
import com.yunche.yunchebusiness.base.rx.SchedulerUtils
import com.yunche.yunchebusiness.entity.HomeEntity
import com.yunche.yunchebusiness.network.RetrofitManager
import io.reactivex.Observable

/**
 * Create by Crcker on 2018/12/27 16:00
 * Email: Crcker@163.com
 */

//获取主页数据

class HomeModel {

    fun getHomePage(): Observable<BaseResponse<HomeEntity>> {
        return RetrofitManager.service.getHomePage().compose(SchedulerUtils.ioToMain())
    }
}